__author__ = 'kzv'
import random
class User(object):

    def __init__(self, username=None, email=None, firstname=None, lastname=None, phone="+11111111", password="1Qwerty2"):
        self.email = email
        self.password = password
        self.username = username
        self.phone = phone
        self.firstname = firstname
        self.lastname = lastname


    @classmethod
    def Admin(cls):
        return cls(email = "admin@mobitile.com", password = "admin")

    @classmethod
    def SimpleUser(cls):
        return cls(email = "zvyagintsev.kirill@gmail.com", password = "1Qwerty2")

    @classmethod
    def RandomUser(cls):
        random_num = random.randint(1, 1000000000)

        return cls(username = "Test"+str(random_num), email="Test"+str(random_num) + "@mobitile.com", firstname="Test"+str(random_num), lastname="Test"+str(random_num))